package com.imooc.pojo.BO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author lihongyu
 * @CreateTime 2021-10-20 11:30
 * @Description 提交订单参数封装实体
 */
@ApiModel("提交订单参数封装实体")
public class SubmitOrderBO implements Serializable {

    /**
     * 用户Id
     */
    @ApiModelProperty(name = "userId",value = "用户Id",dataType = "String")
    private String userId;

    /**
     * 商品规格信息
     */
    @ApiModelProperty(name = "itemSpecIds",value = "商品规格信息",dataType = "String")
    private String itemSpecIds;

    /**
     * 收货地址Id
     */
    @ApiModelProperty(name = "addressId",value = "收货地址Id",dataType = "String")
    private String addressId;

    /**
     * 支付方式
     */
    @ApiModelProperty(name = "payMethod",value = "支付方式",dataType = "Integer")
    private Integer payMethod;

    /**
     * 买家留言
     */
    @ApiModelProperty(name = "leftMsg",value = "买家留言",dataType = "String")
    private String leftMsg;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getItemSpecIds() {
        return itemSpecIds;
    }

    public void setItemSpecIds(String itemSpecIds) {
        this.itemSpecIds = itemSpecIds;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public Integer getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(Integer payMethod) {
        this.payMethod = payMethod;
    }

    public String getLeftMsg() {
        return leftMsg;
    }

    public void setLeftMsg(String leftMsg) {
        this.leftMsg = leftMsg;
    }

    @Override
    public String toString() {
        return "SubmitOrderBO{" +
                "userId='" + userId + '\'' +
                ", itemSpecIds='" + itemSpecIds + '\'' +
                ", addressId='" + addressId + '\'' +
                ", payMethod=" + payMethod +
                ", leftMsg='" + leftMsg + '\'' +
                '}';
    }
}
